<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Yandex.NET.Translator: Yandex.Translator.IYandexTranslatorExtensions Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Yandex.NET.Translator
   &#160;<span id="projectnumber">1.2.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Yandex.Translator.IYandexTranslatorExtensions Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p> 
 <a href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:abf077bf92d5f836b001716ff273c3781"><td class="memItemLeft" align="right" valign="top">static IRestResponse&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#abf077bf92d5f836b001716ff273c3781">Call</a> (this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a> translator, string resource, object parameters=null, object headers=null)</td></tr>
<tr class="separator:abf077bf92d5f836b001716ff273c3781"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1445a20bb1024c2a7c4151acb78d3206"><td class="memItemLeft" align="right" valign="top">static IRestResponse&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#a1445a20bb1024c2a7c4151acb78d3206">Call&lt; T &gt;</a> (this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a> translator, string resource, object parameters=null, object headers=null)</td></tr>
<tr class="separator:a1445a20bb1024c2a7c4151acb78d3206"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf436ce24d63c6b3be3174dfcb69f6ea"><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#adf436ce24d63c6b3be3174dfcb69f6ea">Detect</a> (this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a> translator, string text)</td></tr>
<tr class="separator:adf436ce24d63c6b3be3174dfcb69f6ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9a445f45c1b8c23c1ede5698ae333bd"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#ae9a445f45c1b8c23c1ede5698ae333bd">Detect</a> (this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a> translator, string text, out string language)</td></tr>
<tr class="separator:ae9a445f45c1b8c23c1ede5698ae333bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1056c084fe2fc608244b45f09142f17"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation.html">ITranslation</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#ad1056c084fe2fc608244b45f09142f17">Translate</a> (this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a> translator, string language, string text, string format=null)</td></tr>
<tr class="separator:ad1056c084fe2fc608244b45f09142f17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a414a5f7fdb1aca7bb2baf64a5dfc56c7"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation.html">ITranslation</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#a414a5f7fdb1aca7bb2baf64a5dfc56c7">Translate</a> (this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a> translator, Action&lt; <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation_request.html">ITranslationRequest</a> &gt; request)</td></tr>
<tr class="separator:a414a5f7fdb1aca7bb2baf64a5dfc56c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb7951c4a5a17a67cdb5b046706b4d73"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#abb7951c4a5a17a67cdb5b046706b4d73">Translate</a> (this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a> translator, Action&lt; <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation_request.html">ITranslationRequest</a> &gt; request, out <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation.html">ITranslation</a> translation)</td></tr>
<tr class="separator:abb7951c4a5a17a67cdb5b046706b4d73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2765b2159d03602a55ef130ac7a9c39"><td class="memItemLeft" align="right" valign="top">static IEnumerable<br class="typebreak" />
&lt; <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation_pair.html">ITranslationPair</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#ab2765b2159d03602a55ef130ac7a9c39">TranslationPairs</a> (this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a> translator)</td></tr>
<tr class="separator:ab2765b2159d03602a55ef130ac7a9c39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9dd747a532b08789d3b4f02a0b3493f5"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#a9dd747a532b08789d3b4f02a0b3493f5">TranslationPairs</a> (this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a> translator, out IEnumerable&lt; <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation_pair.html">ITranslationPair</a> &gt; pairs)</td></tr>
<tr class="separator:a9dd747a532b08789d3b4f02a0b3493f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Set of extension methods for interface <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a></dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="abf077bf92d5f836b001716ff273c3781"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IRestResponse Yandex.Translator.IYandexTranslatorExtensions.Call </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a>&#160;</td>
          <td class="paramname"><em>translator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>resource</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>parameters</em> = <code>null</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>headers</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Makes a remote call to <a class="el" href="namespace_yandex_1_1_translator.html">Yandex.Translator</a> REST web service and returns it's response.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">translator</td><td><a class="el" href="namespace_yandex_1_1_translator.html">Translator</a> instance to be used.</td></tr>
    <tr><td class="paramname">resource</td><td>Relative URL of web resource to be used. Base endpoint URL is predefined by implentation.</td></tr>
    <tr><td class="paramname">parameters</td><td>Object whose public properties represent query parameters names/values.</td></tr>
    <tr><td class="paramname">headers</td><td>Object whose public properties represent HTTP headers names/values.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Response from <a class="el" href="namespace_yandex_1_1_translator.html">Yandex.Translator</a> web service.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>translator</em>  or <em>resource</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>resource</em>  is string.Empty string.</td></tr>
    <tr><td class="paramname"><a class="el" href="class_yandex_1_1_translator_1_1_translator_exception.html">TranslatorException</a></td><td>If error occurs during the processing of web request, or if request was invalid.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1445a20bb1024c2a7c4151acb78d3206"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IRestResponse&lt;T&gt; <a class="el" href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#abf077bf92d5f836b001716ff273c3781">Yandex.Translator.IYandexTranslatorExtensions.Call</a>&lt; T &gt; </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a>&#160;</td>
          <td class="paramname"><em>translator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>resource</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>parameters</em> = <code>null</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>headers</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Makes a remote call to <a class="el" href="namespace_yandex_1_1_translator.html">Yandex.Translator</a> REST web service and returns deserialized generic response.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of object that is created from web service's response.</td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">translator</td><td><a class="el" href="namespace_yandex_1_1_translator.html">Translator</a> instance to be used.</td></tr>
    <tr><td class="paramname">resource</td><td>Relative URL of web resource to be used. Base endpoint URL is predefined by implentation.</td></tr>
    <tr><td class="paramname">parameters</td><td>Object whose public properties represent query parameters names/values.</td></tr>
    <tr><td class="paramname">headers</td><td>Object whose public properties represent HTTP headers names/values.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Generic response from <a class="el" href="namespace_yandex_1_1_translator.html">Yandex.Translator</a> web service.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>translator</em>  or <em>resource</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>resource</em>  is string.Empty string.</td></tr>
    <tr><td class="paramname"><a class="el" href="class_yandex_1_1_translator_1_1_translator_exception.html">TranslatorException</a></td><td>If error occurs during the processing of web request, or if request was invalid.</td></tr>
  </table>
  </dd>
</dl>
<div class="typeconstraint">
<dl><dt><b>Type Constraints</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>T</em></td><td>&#160;:</td><td valign="top"><em>new()</em></td><td>&#160;</td></tr>
</table>
</dl>
</div>

</div>
</div>
<a class="anchor" id="adf436ce24d63c6b3be3174dfcb69f6ea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static string Yandex.Translator.IYandexTranslatorExtensions.Detect </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a>&#160;</td>
          <td class="paramname"><em>translator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Makes a language detection request to <a class="el" href="namespace_yandex_1_1_translator.html">Yandex.Translator</a> web service.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">translator</td><td><a class="el" href="namespace_yandex_1_1_translator.html">Translator</a> instance to be used.</td></tr>
    <tr><td class="paramname">text</td><td>Text fragment which language is to be detected.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Language of the provided text fragment.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>translator</em>  or <em>text</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>text</em>  is string.Empty string.</td></tr>
    <tr><td class="paramname"><a class="el" href="class_yandex_1_1_translator_1_1_translator_exception.html">TranslatorException</a></td><td>If error occurs during the processing of web request, or if language of given text fragment cannot be reliably determined.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>http://api.yandex.ru/translate/doc/dg/reference/detect.xml</dd></dl>

</div>
</div>
<a class="anchor" id="ae9a445f45c1b8c23c1ede5698ae333bd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Yandex.Translator.IYandexTranslatorExtensions.Detect </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a>&#160;</td>
          <td class="paramname"><em>translator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out string&#160;</td>
          <td class="paramname"><em>language</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Makes a language detection request to <a class="el" href="namespace_yandex_1_1_translator.html">Yandex.Translator</a> web service.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">translator</td><td><a class="el" href="namespace_yandex_1_1_translator.html">Translator</a> instance to be used.</td></tr>
    <tr><td class="paramname">text</td><td>Text fragment which language is to be detected.</td></tr>
    <tr><td class="paramname">language</td><td>Language of the provided text fragment.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if language was successfully determined and <em>language</em>  output parameter contains its ISO code, or <code>false</code> if detection failed and <em>language</em>  is a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>translator</em>  or <em>text</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>text</em>  is string.Empty string.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>http://api.yandex.ru/translate/doc/dg/reference/detect.xml</dd></dl>

</div>
</div>
<a class="anchor" id="ad1056c084fe2fc608244b45f09142f17"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation.html">ITranslation</a> Yandex.Translator.IYandexTranslatorExtensions.Translate </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a>&#160;</td>
          <td class="paramname"><em>translator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>format</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Makes a translation request to <a class="el" href="namespace_yandex_1_1_translator.html">Yandex.Translator</a> web service.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">translator</td><td><a class="el" href="namespace_yandex_1_1_translator.html">Translator</a> instance to be used.</td></tr>
    <tr><td class="paramname">language</td><td>Translation language. Can be either a single language code (like "en"), representing a target language, or a language pair (like "en-ru"), representing both source and target languages respectively.</td></tr>
    <tr><td class="paramname">text</td><td>Text to be translated.</td></tr>
    <tr><td class="paramname">format</td><td>Format of original text.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="interface_yandex_1_1_translator_1_1_i_translation.html">ITranslation</a> instance that represents result of text's translation.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>translator</em> , <em>language</em>  or <em>text</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If either <em>language</em>  or <em>text</em>  is string.Empty string.</td></tr>
    <tr><td class="paramname"><a class="el" href="class_yandex_1_1_translator_1_1_translator_exception.html">TranslatorException</a></td><td>If error occurs during the processing of web request, or if given text cannot be translated by web service.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Translate(IYandexTranslator, Action{ITranslationRequest}), http://api.yandex.ru/translate/doc/dg/reference/translate.xml</dd></dl>

</div>
</div>
<a class="anchor" id="a414a5f7fdb1aca7bb2baf64a5dfc56c7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation.html">ITranslation</a> Yandex.Translator.IYandexTranslatorExtensions.Translate </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a>&#160;</td>
          <td class="paramname"><em>translator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Action&lt; <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation_request.html">ITranslationRequest</a> &gt;&#160;</td>
          <td class="paramname"><em>request</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Makes a translation request to <a class="el" href="namespace_yandex_1_1_translator.html">Yandex.Translator</a> web service.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">translator</td><td><a class="el" href="namespace_yandex_1_1_translator.html">Translator</a> instance to be used.</td></tr>
    <tr><td class="paramname">request</td><td>Delegate that specifies text for translation, source/target languages and addional options.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="interface_yandex_1_1_translator_1_1_i_translation.html">ITranslation</a> instance that represents result of text's translation.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>translator</em>  or <em>request</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname"><a class="el" href="class_yandex_1_1_translator_1_1_translator_exception.html">TranslatorException</a></td><td>If error occurs during the processing of web request, or if given text cannot be translated by web service.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Translate(IYandexTranslator, string, string, string), http://api.yandex.ru/translate/doc/dg/reference/translate.xml</dd></dl>

</div>
</div>
<a class="anchor" id="abb7951c4a5a17a67cdb5b046706b4d73"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Yandex.Translator.IYandexTranslatorExtensions.Translate </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a>&#160;</td>
          <td class="paramname"><em>translator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Action&lt; <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation_request.html">ITranslationRequest</a> &gt;&#160;</td>
          <td class="paramname"><em>request</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation.html">ITranslation</a>&#160;</td>
          <td class="paramname"><em>translation</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Makes a translation request to <a class="el" href="namespace_yandex_1_1_translator.html">Yandex.Translator</a> web service.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">translator</td><td><a class="el" href="namespace_yandex_1_1_translator.html">Translator</a> instance to be used.</td></tr>
    <tr><td class="paramname">request</td><td>Delegate that specifies text for translation, source/target languages and addional options.</td></tr>
    <tr><td class="paramname">translation</td><td><a class="el" href="interface_yandex_1_1_translator_1_1_i_translation.html">ITranslation</a> instance that represents result of text's translation.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if translation was successfull and <em>translation</em>  output parameter contains translated text, or <code>false</code> if translation failed and <em>translation</em>  is a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>translator</em>  or <em>request</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>http://api.yandex.ru/translate/doc/dg/reference/translate.xml</dd></dl>

</div>
</div>
<a class="anchor" id="ab2765b2159d03602a55ef130ac7a9c39"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IEnumerable&lt;<a class="el" href="interface_yandex_1_1_translator_1_1_i_translation_pair.html">ITranslationPair</a>&gt; Yandex.Translator.IYandexTranslatorExtensions.TranslationPairs </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a>&#160;</td>
          <td class="paramname"><em>translator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Makes a request to <a class="el" href="namespace_yandex_1_1_translator.html">Yandex.Translator</a> web service to return collection of supported languages pairs (translations directions).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">translator</td><td><a class="el" href="namespace_yandex_1_1_translator.html">Translator</a> instance to be used.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Collection of supported language pairs (directions).</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>translator</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname"><a class="el" href="class_yandex_1_1_translator_1_1_translator_exception.html">TranslatorException</a></td><td>If error occurs during the processing of web request.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>http://api.yandex.ru/translate/doc/dg/reference/getLangs.xml</dd></dl>

</div>
</div>
<a class="anchor" id="a9dd747a532b08789d3b4f02a0b3493f5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Yandex.Translator.IYandexTranslatorExtensions.TranslationPairs </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="interface_yandex_1_1_translator_1_1_i_yandex_translator.html">IYandexTranslator</a>&#160;</td>
          <td class="paramname"><em>translator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out IEnumerable&lt; <a class="el" href="interface_yandex_1_1_translator_1_1_i_translation_pair.html">ITranslationPair</a> &gt;&#160;</td>
          <td class="paramname"><em>pairs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Makes a request to <a class="el" href="namespace_yandex_1_1_translator.html">Yandex.Translator</a> web service to return collection of supported languages pairs (translations directions).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">translator</td><td><a class="el" href="namespace_yandex_1_1_translator.html">Translator</a> instance to be used.</td></tr>
    <tr><td class="paramname">pairs</td><td>Collection of supported language pairs (directions).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if request was successfull and <em>pairs</em>  output parameter contains supported language pairs, or <code>false</code> if request failed and <em>pairs</em>  is a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>translator</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>http://api.yandex.ru/translate/doc/dg/reference/getLangs.xml</dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_yandex.html">Yandex</a></li><li class="navelem"><a class="el" href="namespace_yandex_1_1_translator.html">Translator</a></li><li class="navelem"><a class="el" href="class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html">IYandexTranslatorExtensions</a></li>
    <li class="footer">Generated on Wed Aug 6 2014 01:50:13 for Yandex.NET.Translator by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
